import 'package:ati_package/core/routes/app_routes.dart';
import 'package:ati_package/core/utils/ati_assets.dart';
import 'package:ati_package/core/utils/ati_color.dart';
import 'package:ati_package/core/utils/ati_font.dart';
import 'package:ati_package/pages/common/widgets/ati_common_btn.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';

import '../../../common/widgets/ati_base_dialog.dart';

class SignSuccessDialog extends StatelessWidget {
  const SignSuccessDialog({super.key});

  @override
  Widget build(BuildContext context) {
    return AtiBaseDialog(
      child: Container(
        width: 280.r,
        height: 320.r,
        decoration: BoxDecoration(
          image: DecorationImage(
            image: AssetImage(AtiAssets.signSuccess, package: 'ati_package'),
          ),
        ),
        child: Column(
          children: [
            SizedBox(height: 72.r),
            Text(
              '连续签到7天',
              style: TextStyle(
                color: AtiColor.textColor1,
                fontSize: 13.r,
                fontWeight: FontWeight.w600,
              ),
            ),
            SizedBox(height: 7.5.r),
            Text(
              '恭喜您，本次获得以下奖励',
              style: TextStyle(
                color: AtiColor.textColor1,
                fontSize: AtiFont.font11,
                fontWeight: FontWeight.w500,
              ),
            ),
            SizedBox(height: 15.r),
            Image.asset(
              width: 42.5.r,
              height: 42.5.r,
              AtiAssets.signListIcon,
              package: 'ati_package',
            ),

            Text(
              '30积分',
              style: TextStyle(
                color: AtiColor.textColor1,
                fontSize: AtiFont.font12,
                fontWeight: FontWeight.w600,
              ),
            ),
            AtiCommonBtn(
              onPressed: () {
                Get.back();
                Get.toNamed(AtiAppRoutes.pointsMall);
              },
              titleStr: '前往积分商城',
              margin: EdgeInsets.only(
                left: 25.r,
                right: 25.r,
                top: 30.r,
                bottom: 20.r,
              ),
            ),

            Text(
              '稍后再说',
              style: TextStyle(
                color: AtiColor.textGreyColor,
                fontSize: AtiFont.font12,
                fontWeight: FontWeight.w600,
              ),
            ),
          ],
        ),
      ),
    );
  }
}
